DEBUG = True
SECRET_KEY = 'sdfasdgasf1!$@#3'
#自动加载模板
TEMPLATES_AUTO_RELOAD = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
#数据库连接配置
# HOSTNAME = '127.0.0.1'
HOSTNAME = '127.0.0.1'
PORT = '3306'
DATABASE = 'movie_db'
USERNAME = 'root'
PASSWORD = '123456'

DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
#设置一个后台CMS,和前台用户变量，用来保存到g对象中